import React from 'react';
export default class Handler extends React.Component {
  render() {
    console.log(this.props)
    return (
      <div>
        <p>react 插槽</p>
        {/* this.props.children属性用来获取组件标签内部的内容 */}
        {/* <p>{ this.props.children }</p> */}
        <p>{ this.props.children() }</p>
      </div>
    )
  }
}